package com.example.auth.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.db.annotations.ID;
import com.example.db.annotations.Table;
import com.example.db.annotations.TableField;

import java.util.Date;

/**
 * @Classname RoleModel
 * @Description TODO
 * @Date 2022/7/29 17:00
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Table("sys_role")
public class  RoleModel {

    @ID
    private Integer id;

    @TableField("rolename")
    private String rolename;

    @TableField("roleno")
    private String roleno;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @TableField("createdate")
    private Date createdate;

    @TableField("isdel")
    private Integer isdel;

    @TableField("remark")
    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRoleno() {
        return roleno;
    }

    public void setRoleno(String roleno) {
        this.roleno = roleno;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    public RoleModel(Integer id, String rolename, String roleno, Date createdate, Integer isdel) {
        this.id = id;
        this.rolename = rolename;
        this.roleno = roleno;
        this.createdate = createdate;
        this.isdel = isdel;
    }

    public RoleModel() {
    }
}
